home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / os2 / com2207.zip / COMINST.CMD < prev    next >
OS/2 REXX Batch file  |  1992-07-23  |  1KB  |  41 lines

  1. @echo off
  2. rem ****************************************************
  3. rem *** Simple Installation utility for beta drivers ***
  4. rem ****************************************************
  5.  
  6.  
  7. if "%1"=="" goto ERROR1
  8. if not exist %1\os2\com.sys goto ERROR2
  9. if not exist COMBETA goto ERROR3
  10.  
  11. :DOIT
  12. rename %1\os2\com.sys *.392
  13. rename %1\os2\mdos\vcom.sys *.392
  14. rename %1\os2\mdos\winos2\system\comm.drv *.392
  15.  
  16. copy COMBETA\com.sys %1\os2\com.sys
  17. copy COMBETA\vcom.sys  %1\os2\mdos\vcom.sys
  18. copy COMBETA\comm.drv  %1\os2\mdos\winos2\system\comm.drv 
  19.  
  20. goto DONE
  21.  
  22. :ERROR1
  23. echo **** YOU MUST SUPPLY THE OS/2 DRIVE (I.E.  C:) ****
  24. goto DONE
  25.  
  26. :ERROR2
  27. if %2==99 goto DOIT
  28. echo **** COM.SYS not found...Did you supply the correct Drive? ****
  29. echo **** If you wish to Override, execute COMINST x: 99 where  ****
  30. echo **** x: is the correct drive letter                        ****
  31. goto DONE
  32.  
  33. :ERROR3
  34. echo **** This is not the correct BETA Driver Floppy ****
  35. echo **** You must be at the floppy prompt (i.e A:)  ****
  36. echo **** for this to work correctly!!               ****
  37. goto DONE
  38.  
  39. :DONE
  40. echo on
  41.